package service;

import java.util.List;

import dao.ZhanghuDAO;
import vo.Zhanghu;

public class Service {
	private ZhanghuDAO us = new ZhanghuDAO();

	public Zhanghu dl(String yhm, String pwd) {
		Zhanghu s = us.dl(yhm, pwd);
		return s;
	}

	public List<Zhanghu> findAll() {
		return us.findAll();
	}

	public void Zhuc(String yhm, String pwd, String name, String aihao) throws Exception {
		Zhanghu u = new Zhanghu(null,yhm,pwd,name,aihao);
		us.zj(u);
	}
}
